package com.xyoto.community.vo;

import com.xyoto.community.constant.MessageConstant;
import com.xyoto.community.po.NewestFanMessagePO;
import com.xyoto.community.po.NewestInteractMessageDetailsPO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author coderFu
 * @create 2021/10/6
 */
@ApiModel("消息列表VO")
@Data
public class MessageListVO {

    @ApiModelProperty("最新互动消息")
    private NewestInteractMessageDetailsPO newestInteractMessageDetailsPo;

    @ApiModelProperty("最新粉丝消息")
    private NewestFanMessagePO newestFanMessagePo;

    @ApiModelProperty("私信列表")
    private List<PrivateLetterVo> privateLetterVos;

    public void init(){
        this.newestInteractMessageDetailsPo = new NewestInteractMessageDetailsPO();
        newestInteractMessageDetailsPo.setStatus(MessageConstant.NO_NEWEST_STATUS);
        this.newestFanMessagePo = new NewestFanMessagePO();
        newestFanMessagePo.setStatus(MessageConstant.NO_NEWEST_STATUS);
    }
}
